package com.njym.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * @author zhy
 * @date 2019-03-06 13:40
 **/
@TableName("sys_config")
public class SysConfig extends Model<SysConfig> {

	/**
	 * 主键
	 * 主键
	 * isNullAble:0
	 */
	@TableId(type = IdType.ID_WORKER_STR)
	private String id;

	/**
	 * 键
	 * isNullAble:1
	 */
	@TableField("config_key")
	private String configKey;

	/**
	 * 值
	 */
	private String value;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getConfigKey() {
		return configKey;
	}

	public void setConfigKey(String configKey) {
		this.configKey = configKey;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	@Override
	protected Serializable pkVal() {
		return id;
	}

}
